All Questions
9 questions
6votes
5answers
1kviews
How to refactor this code to obey the ‘open-closed’ principle?
The UML is listed below. There are different products with different preferential strategies. After adding these products into the shopping cart, the caller needs to call the checkout() method to ...
-4votes
1answer
88views
Command-Query Separation non-compliance
Why does Java's V Map.put(K key, V value) not comply to the Command-Query Separation?
2votes
4answers
330views
Meaning of Machine in Compiler Theory
Can anyone tell me what does "machine" means in Compiler Theory? Does it mean computer in general or operating system? Actually, the problem is I understand the definition of machine language as "the ...
0votes
3answers
30kviews
How to design the classes for a simple shopping cart example using Strategy Design Patterns
First year of Software Engineering, and we're learning OOP within Java. Came across an extension task to gain more credits. But could not think of what to do: First Step: Design a checkout system ...
-1votes
1answer
648views
Should I re-write VB6 Code to Java [closed]
I work at a mid-sized company where an update is needed to an piece of the application due to an addition to the environment. The part that needs updated has been in place for 13 years, is fairly ...
2votes
3answers
158views
Refactor an old model of a LastUser Modification on every Object?
I have a software requirement, that needs to store the user that made the last modification to another object, for every object (assume that all objects are already mapped and into a BD). So we have ...
11votes
2answers
10kviews
Are you allowed to "copy" the GUI/Features of another application
I'm making a app which is based heavily on another application that serves a similar purpose. I'm not actually planning on selling it, but I'm wondering whether it would even be legal for me to sell ...
1vote
2answers
131views
Copyright/General Law for Publishing Online Software
I'm planning on releasing a program I made, but I'm not sure exactly how to ensure people don't just steal it. The price point is $1, but I'm not selling it through an "app store" or anything so I ...
6votes
2answers
2kviews
How much should a floating license cost? [closed]
Floating licensing is a software licensing approach in which a limited number of licenses for a software application are shared among a larger number of users over time. Nice for the corporates to ...